<!-- 
 Copyright 2008 Carnegie-Mellon University
 Licensed under the Apache License, Version 2.0 (the "License"); 
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
  
   http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, 
 software distributed under the License is distributed on an
 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 KIND, either express or implied. See the License for the
 specific language governing permissions and limitations
 under the License.
-->

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<script type="text/javascript" src="../js/external/jquery.js"></script>
<script type="text/javascript"><!-- jQuery.noConflict(); //--></script>
<script type="text/javascript" src="../js/external/jquery-tipsy.js"></script>
<script type="text/javascript" src="../js/external/prototype.js"></script>
<script type="text/javascript" src="../js/resources.js.jsp"></script>
<script type="text/javascript" src="../js/shared.js"></script>
<script type="text/javascript" src="../js/topic_development.js"></script>
<link rel="stylesheet" href="../css/common.css" type="text/css" />
<link rel="stylesheet" href="../css/topic_development.css" type="text/css" />
<link rel="stylesheet" href="../css/external/jquery-tipsy.css" type="text/css" />
<title></title>
</head>

<body onLoad="initTD()">

<h2 id="td" align="center"></h2>

<table width="95%"  border="0" align="center" cellpadding="5" cellspacing="0">
  <tr>
    <td><span id="msg_td_direction"></span></td>
  </tr>
  <tr>
    <td><h4 id="msg_td_msg1"></h4></td>
  </tr>
  <tr>
    <td bgcolor="#FFCCCC">
      <div id="select_a_task" style="display:none">
        <table width="100%"  border="0" cellpadding="5" cellspacing="0" bgcolor="#FFEFEF">
          <tr>
            <td><span id="msg_select_t"></span><br>
              <select id="topicList" style="width:320px;font-size:small" onChange="loadTopicTD(this.value)" class="inputbox"></select>
  		  </td>
          </tr>
        </table>
        <strong id="msg_or"></strong><br>
      </div>
      <table width="100%"  border="0" cellpadding="5" cellspacing="0" bgcolor="#FFEFEF">
        <tr>
          <td><span id="msg_td_msg1_1"></span></td>
        </tr>
        <tr>
          <td valign="middle"><input id="newTitle" type="text" style="width:230px;" class="inputbox">
          <input class="msg_add" type="button" onclick="addTopic()" value=" ADD ">
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>

<div id="additional" style="display:none">
<table width="95%" border="0" align="center" cellpadding="5" cellspacing="0">
  <tr>
    <td><span id="msg_td_msg2"></span></td>
  </tr>
  <tr>
    <td bgcolor="#FFCCCC">
      <!-- read by search frame -->
      <input id="taskNameShort" type="hidden" value="">
      <input id="topicId" type="hidden" value="">
      <table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#FFEFEF">
      <tr>
        <td>      
        
        <table  border="0" cellspacing="0" cellpadding="1">
        <tr>
          <td valign="top"><span id="msg_externalId"></span></td>
          <td><input id="externalId" type="text" class="inputbox tdinput"></td>
        </tr>
        <tr>
          <td valign="top"><span id="msg_question_topic"></span></td>
          <td><input id="title" type="text" class="inputbox tdinput"></td>
        </tr>
        <tr>
          <td valign="top"><span id="msg_question_trg"></span></td>
          <td><textarea rows="2" id="questionTrg" class="inputbox tdinput" onblur="cleanup(this)"></textarea></td>
        </tr>
        <tr>
          <td valign="top" nowrap><span id="msg_question_src"></span></td>
          <td><textarea rows="2" id="questionSrc" class="inputbox tdinput" onblur="cleanup(this)"></textarea></td>
        </tr>
        <tr>
          <td valign="top" nowrap><span id="msg_answer_type"></span></td>
          <td><select id="type" class="inputbox"></select></td>
        </tr>
        <tr>
          <td valign="top"><span id="msg_narrative_trg"></span></td>
          <td><textarea id="narrativeTrg" rows="3" class="inputbox tdinput" onblur="cleanup(this)"></textarea></td>
        </tr>
        <tr>
          <td valign="top"><span id="msg_narrative_src"></span></td>
          <td><textarea id="narrativeSrc" rows="3" class="inputbox tdinput" onblur="cleanup(this)"></textarea></td>
        </tr>
        <tr>
          <td valign="top"><span id="msg_note"></span></td>
          <td><textarea id="note" rows="2" class="inputbox tdinput" onblur="cleanup(this)"></textarea></td>
        </tr>
      </table>
      <div align="center">
        <input class="msg_delete" type="button" value=" DELETE " style="width:80px" onClick="deleteTopic()">&nbsp;&nbsp;
        <input class="msg_save" type="button" value=" SAVE " style="width:80px" onClick="saveTopic()">
    </div></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><span id="msg_td_msg3"></span></td>
  </tr>
  <tr>
    <td bgcolor="#99FFFF">
      <div id="answerText"></div>
      <textarea style="display:none" id="newAnswerText"></textarea>
      <input type="hidden" id="newDocId">
      <input type="hidden" id="newLabel">
      <input type="hidden" id="begin">
      <input type="hidden" id="end">
      <input type="hidden" value="ADD" onclick="addAnswerText()">  
    </td>
  </tr>
</table>

<table width="95%" align="center" cellpadding="0" cellspacing="0">  <tr>
    <td>
      <br>
      <!-- hidden for a moment-->
      <div class="donebox">
      	<input type="checkbox" value="1" id="done" onclick="updateDone('td')">
      	&nbsp;<label for="done"><span id="msg_donetask"></span></label>
      </div>
    </td>
  </tr>
</table>
</div>


<br>

<!-- FOOTER -->
<div id="footer"></div>

</body>
</html>
